package com.kunlong.fastdfs.service;


import com.kunlong.fastdfs.dto.FastdfsFileInfoDto;

import java.util.Map;

public interface FastsdfsApiService {
	   Integer delete(String group, String remoteFilename)      ;

		/**
         * 上传
         * @param name
         * @param ext
         * @param bytes
         * @param props
         * @return
         */
	FastdfsFileInfoDto upload(String name, String ext, byte[] bytes, Map<String, String> props);
	
	/**
	 * 下载
	 * @param groupName
	 * @param remoteFileName
	 * @return
	 */
	byte[] download(String groupName, String remoteFileName);
}
